package com.onpositive.datacollection.editor;

import com.onpositive.datacollection.proxy.RemoteDataCollection.RemoteDataObject;
import com.onpositive.datamap.core.IDataObject;

public class ValuesView extends CollectionBasedSelectionView {

	public ValuesView() {
		super("values.dlf");
		setAsync(true);
	}

	@SuppressWarnings("rawtypes")
	@Override
	protected Class getTargetClass() {
		return IDataObject.class;
	}

	@Override
	protected Object transform(Object value) {
		if (value instanceof RemoteDataObject){
			RemoteDataObject m=(RemoteDataObject) value;
			value=m.toSingle();
		}
		return value;
	}

}
